<?php

class FlashMsg
{	
	protected $_info = array();
	
	function addInfo($message) {
		$this->_addMsg($message, 'info');
	}
	
	function addError($message) {
		$this->_addMsg($message, 'error');
	}
	
	function addWarning($message) {
		$this->_addMsg($message, 'warning');
	}
	
	function addDebug($message) {
		$this->_addMsg($message, 'debug');
	}
	
	private function _addMsg($message, $type) {
		$m = array();
		$m['type'] = $type;
		$m['message'] = $message;
		
		$this->_messages[] = $m;
		
		var_dump($this->_messages);
	}
	
	
}
